home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / LOCATE.BAT < prev    next >
DOS Batch File  |  1990-01-14  |  709b  |  28 lines

  1. echo off
  2. echo.
  3. echo ┌───────────────────────────────────────────────────┐
  4. echo │ Wildcard locate file names on a device            │
  5. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 14-Jan-90 │
  6. echo └───────────────────────────────────────────────────┘
  7. rem Trick: below is echo + ascii 255
  8. echo  
  9.  
  10. if "%1"=="" goto _help
  11.  
  12. cd \
  13. attrib %1 /s
  14. goto _out
  15.  
  16. :_help
  17. echo Usage: LOCATE SearchString
  18. echo.
  19. echo E.g.  LOCATE tsbat.nws  finds all occurrences of tsbat.nws on the device
  20. echo       LOCATE *.com      finds all .com files
  21. echo       LOCATE ts*.arc    finds all ts-packages
  22. echo.
  23. echo You might want to apply PUSHDIRE prior, and POPDIRE after running
  24. echo this batch
  25.  
  26. :_out
  27. echo on
  28.